import React, { Component } from "react";
import { Link } from "react-router-dom";

export default class List extends Component {
  render() {
    return (
      <div>
        <h1>列表页面</h1>
        <ul>
          <li>
            <Link to={{pathname:"/Admin/Detail",query:{id:"01"}}}> 进入详情01</Link>
          </li>
          <li>
            <Link to={{pathname:"/Admin/Detail",query:{id:"02"}}}> 进入详情02</Link>
          </li>
          <li>
            <Link to={{pathname:"/Admin/Detail",state:{stateid:"03"}}}> 进入详情03【用state】</Link>
          </li>
          <li>
            <Link to={{pathname:"/Admin/Detail",search:"?a=1&b=2"}}> 进入详情04【用search】</Link>
          </li>
          <li>
            <Link to="/Admin/Detail?a=1&b=2"> 进入详情05【用search】</Link>
          </li>
        </ul>
      </div>
    );
  }
}
